<template>
    <div class="footer-container">
        <div class="footer-nav">
            <div class="container">
                <div class="row">
                    <div v-for="(item,index) in footerNav" :key="index" class="col-xs-12 col-sm-4">
                        <div v-for="v in item" :key="v.title">
                            <div class="footer-subtitle">
                                <h5>
                                    <router-link v-if="v.title!='Feedback'" :to="'/site/'+jumpUrl(v.title)" v-text="v.title"></router-link>
                                    <a v-text="v.title" v-else href="javascript:;"></a>
                                </h5>
                            </div>
                            <ul class="list-unstyled">
                                <li v-for="val in v.items" :key="val">
                                    <router-link :to="'/site/'+jumpUrl(v.title)+'/'+jumpUrl(val)" v-text="val"></router-link>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-xs-12 col-sm-4 f-seed-mail">
                        <div class="footer-subtitle" v-pre>
                            <h5>
                                <a href="javascript:;">ORDER BY PHONE</a>
                            </h5>
                        </div>
                        <div class="footer-text" v-html="tel"></div>
                        <div class="footer-newsletter">
                            <span class="title" v-text="newsletter.title"></span>
                            <p class="footer-text" v-text="newsletter.text"></p>
                            <div class="block-content form" v-pre>
                                <button type="submit" class="button pull-right">
                                    <span class="icon-arrow-right"></span>
                                </button>
                                <div class="form-search-input">
                                    <input type="text" name="email" id="newsletter" placeholder="Email" class="input-text form-control">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="copyright">
            <div class="container">
                <div class="row" v-text="copyright"></div>
            </div>
        </div>
    </div>
</template>
<script>
import mixin from '../../mixin'
export default {
    mixins: [mixin],
    data() {
        return {
            footerNav: [
                [{
                    title: 'Support',
                    items: ['Order Status', 'Product Care', 'Shopping Support', 'Shipping & Returns', 'FAQ', 'Warranty', 'Gift Card Support', 'Product Registration', 'Downloads']
                }, {
                    title: 'Legal',
                    items: ['Terms of Use', 'Privacy Policy', 'Report Counterfeits', 'Intellectual Property']
                }],
                [{
                    title: 'Company',
                    items: ['Blog', 'Affiliate Program', 'Partner Portal', 'Worldwide Offices', 'Live Chat', 'Contact', 'Site Map'],
                }, {
                    title: 'Careers'
                }, {
                    title: 'Feedback'
                }]
            ],
            tel: '800 403 7449<br /> Monday to Friday 6am PST - 5pm PST',
            copyright: 'Copyright ©2017 Designer Sunglasses , Inc. All Rights Reserved',
            newsletter: { 'title': 'Newsletter Sign Up', 'text': 'New products, coupons, and exclusive sales available when you sign up for our email newsletter.' }
        }
    }
}
</script>
<style>
.footer-nav {
    font-family: "Roboto Condensed", sans-serif;
    background-color: #2E2E2E;
}

.footer-nav .col-sm-3 {
    padding-left: 0;
    padding-right: 0;
}

.footer-nav h5 a,
.footer-newsletter .title {
    display: inline-block;
    padding: 10px 0 0;
    color: #fff;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-nav li a,
.footer-text {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    text-decoration: none;
    line-height: 30px;
    color: #888;
}

.footer-text {
    line-height: 25px;
}

.footer-nav li a:hover {
    color: #fff;
}

.copyright {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    color: #aaa;
    line-height: 48px;
    text-align: right;
    background-color: #000;
}

.form-search-input {
    overflow: hidden;
}

.footer-nav .form-control {
    border-radius: 0px;
    height: 43px;
}

.footer-nav .form-control:focus {
    border: 1px solid #000;
    color: #222;
    background-color: #fff;
    box-shadow: inset 2px 2px 5px 0 #888;
}

.footer-newsletter {
    padding-top: 15px;
}

.footer-newsletter button.button {
    width: 45px;
    height: 43px;
    background-color: #444;
    border: none;
    color: #fff;
}

.footer-newsletter .validation-advice {
    padding-top: 10px;
    color: #fff;
    text-align: left;
}

@media (max-width: 767px) {
    .footer-nav {
        padding-top: 10px;
        text-align: center;
    }
    .footer-nav ul {
        display: none;
    }
    .footer-nav h5 {
        margin-bottom: 0;
    }
    .f-seed-mail {
        border-top: 1px solid #444;
        padding-top: 10px;
        padding-bottom: 25px;
        margin-top: 25px;
    }
    .f-seed-mail h5 {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .copyright {
        font-size: 12px;
    }
    .footer-nav h5 a,
    .footer-text {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .footer-nav {
        padding: 20px 0;
    }
}
</style>
